package cn.ywsj.ywsjmidtier.entity.VO;

import cn.ywsj.ywsjmidtier.entity.BaseGroup;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.util.Date;
import java.util.List;

@Data
public class WarehouseVo {

    private static final long serialVersionUID = 1L;

    private Long warehouseId;

    private String warehouseName;

    private String warehouseCode;

    private String areaId;

    private String streetAddress;

    @Pattern(regexp = "^$|^\\d{6}$", message = "{com.itonghui.address.zipCode.regexp}", groups = {BaseGroup.Insert.class, BaseGroup.Update.class})
    private String zipCode;

    @Pattern(regexp = "^((\\+86)?(13\\d|14[5-9]|15[0-35-9]|166|17[0-8]|18\\d|19[8-9])\\d{8})$", message = "{com.itonghui.address.phone.regexp}", groups = {BaseGroup.Insert.class, BaseGroup.Update.class})
    private String phone;

    @Pattern(regexp = "^$|^(([0\\+]\\d{2,3}-)?(0\\d{2,3})-)?(\\d{7,8})(-(\\d{3,}))?$", message = "{com.itonghui.address.fixphone.regexp}", groups = {BaseGroup.Insert.class, BaseGroup.Update.class})
    private String tel;

    private Integer isDefault;

    private String longitudeLatitude;

    private Date addDate;

    private Date operTime;

    private Long operUser;

    private Integer removeTag;

    private Integer status;

    private String remark;

    private Long custId;

    private String custName;

    private List<Long> listId;
}
